#!/usr/bin/php
<?PHP


$s = <<< 'EOF'
NowDoc
hereDoc

            $str = "I love play basketball";
            $array = explode("", $str);
            print_r($array);

            $str='I love play basketball';
            echo substr($str, -4, 4);

            $j = 5;

            switch ($j) {
                default: echo 'no result';
                case 1: echo '周一';
                case 2: echo '周二';
                case 3: echo '周三';
                case 4: echo '周四';
                case 5: echo '周五';
                case 6: echo '周六';
                case 7: echo '周末';
            }
EOF;

echo $s;
